/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.partaljevic.gambling;

import com.partaljevic.gambling.beans.Ticket;
import java.util.Date;
import java.util.List;
import org.apache.tapestry5.hibernate.annotations.CommitAfter;

/**
 *
 * @author Danilo
 */
public interface Customer {

    void setScore(double score);

    List<Ticket> getWinner();

    void setUsername(String username);

    void setPassword(String password);

    List<Ticket> getTickets();

    String getPassword();

    double getScore();

    String getUsername();

    @CommitAfter
    void addTicket(Ticket ticket);

    void clearTicket();

    void setPrivilege(Privilege privilege);

    Privilege getPrivilege();

    String showCustomer();

    String toString();
    String getEmail();
    void setEmail(String email);
    String getName();
    void setName(String name);
    String getSurname();
    void setSurname(String surname);
}
